/**
 * @Author: ls <ls-mac>
 * @Date:   2019-08-12 14:22:00
 * @Last modified by:   ls-mac
 * @Last modified time: 2020-07-03 17:22:20
 */

// import { stringify } from 'qs';
import request from '../utils/reqaxios';

// /dict/list
// 通用字典列表
export async function dictList(params) {
  return request({
    url: '/dict/list',
    method: 'post',
    data: params,
  });
}

export async function dictPage(params) {
  return request({
    url: '/dict/page',
    method: 'post',
    data: params,
  });
}

// /dict/addOrEdit
// 通用字典新增和修改
export async function dictAddOrEdit(params) {
  return request({
    url: '/dict/addOrEdit',
    method: 'post',
    data: params,
  });
}

// /dict/delete
// 通用字典删除
export async function dictDelete(params) {
  return request({
    url: '/dict/delete',
    method: 'post',
    data: params,
  });
}

// /city/addOrEdit 城市新增和修改
export async function dictCityAddOrEdit(params) {
  return request({
    url: '/city/addOrEdit',
    method: 'post',
    data: params,
  });
}

// /city/delete 城市删除
export async function dictCityDelete(params) {
  return request({
    url: '/city/delete',
    method: 'post',
    data: params,
  });
}

// /city/detail 城市详情
export async function dictCityDetail(params) {
  return request({
    url: '/city/detail',
    method: 'post',
    data: params,
  });
}

// /city/list 城市列表
export async function dictCityList(params) {
  return request({
    url: '/city/list',
    method: 'post',
    data: params,
  });
}

// /city/page 城市列表
export async function dictCityPage(params) {
  return request({
    url: '/city/page',
    method: 'post',
    data: params,
  });
}

// /institution/addOrEdit 体检机构新增和修改
export async function dictInstitutionAddOrEdit(params) {
  return request({
    url: '/institution/addOrEdit',
    method: 'post',
    data: params,
  });
}

// /institution/delete 体检机构删除
export async function dictInstitutionDelete(params) {
  return request({
    url: '/institution/delete',
    method: 'post',
    data: params,
  });
}

// /institution/detail 体检机构详情
export async function dictInstitutionDetail(params) {
  return request({
    url: '/institution/detail',
    method: 'post',
    data: params,
  });
}

// /institution/list 体检机构列表
export async function dictInstitutionList(params) {
  return request({
    url: '/institution/list',
    method: 'post',
    data: params,
  });
}

// /institution/page 体检机构分页列表
export async function dictInstitutionPage(params) {
  return request({
    url: '/institution/page',
    method: 'post',
    data: params,
  });
}

// /province/addOrEdit 省份新增和修改
export async function dictProvinceAddOrEdit(params) {
  return request({
    url: '/province/addOrEdit',
    method: 'post',
    data: params,
  });
}

// /province/delete 省份删除
export async function dictProvinceDelete(params) {
  return request({
    url: '/province/delete',
    method: 'post',
    data: params,
  });
}

// /province/detail 省份详情
export async function dictProvinceDetail(params) {
  return request({
    url: '/province/detail',
    method: 'post',
    data: params,
  });
}

// /province/list 省份列表
export async function dictProvinceList(params) {
  return request({
    url: '/province/list',
    method: 'post',
    data: params,
  });
}

// /province/page 省份列表
export async function dictProvincePage(params) {
  return request({
    url: '/province/page',
    method: 'post',
    data: params,
  });
}

// /store/addOrEdit 门店新增和修改
export async function dictStoreAddOrEdit(params) {
  return request({
    url: '/store/addOrEdit',
    method: 'post',
    data: params,
  });
}

// /store/detail 门店详情
export async function dictStoreDetail(params) {
  return request({
    url: '/store/detail',
    method: 'post',
    data: params,
  });
}

// /store/list 门店列表
export async function dictStoreList(params) {
  return request({
    url: '/store/list',
    method: 'post',
    data: params,
  });
}

// /store/page 门店分页列表
export async function dictStorePage(params) {
  return request({
    url: '/store/page',
    method: 'post',
    data: params,
  });
}

// /orderPackageStore/list(小程序后台公用)
// 下单套餐可选门店列表
export async function dictOrderPackageStoreList(params) {
  return request({
    url: '/orderPackageStore/list',
    method: 'post',
    data: params,
  });
}

// /store/delete 门店删除
export async function dictStoreDelete(params) {
  return request({
    url: '/store/delete',
    method: 'post',
    data: params,
  });
}

// /storeUnavailableTime/addOrEdit 门店不可预约时间新增和修改
export async function dictStoreUnavailableTimeAdd(params) {
  return request({
    url: '/storeUnavailableTime/add',
    method: 'post',
    data: params,
  });
}

export async function dictStoreUnavailableTimeEdit(params) {
  return request({
    url: '/storeUnavailableTime/edit',
    method: 'post',
    data: params,
  });
}

// /storeUnavailableTime/list 门店不可预约时间列表
export async function dictStoreUnavailableTimeList(params) {
  return request({
    url: '/storeUnavailableTime/list',
    method: 'post',
    data: params,
  });
}

// /storeUnavailableTime/page 门店不可预约时间列表
export async function dictStoreUnavailableTimePage(params) {
  return request({
    url: '/storeUnavailableTime/page',
    method: 'post',
    data: params,
  });
}

// /storeUnavailableTime/delete 门店不可预约时间列表删除
export async function dictStoreUnavailableTimeDelete(params) {
  return request({
    url: '/storeUnavailableTime/delete',
    method: 'post',
    data: params,
  });
}

// /upload 上传文件
export async function dictUpload(params) {
  console.log(params);
  return request({
    url: '/upload',
    method: 'post',
    data: params,
  });
}
